package com.xixi.core.rpc.loadbalancer;

import com.xixi.core.rpc.model.ServiceMetaInfo;

import java.util.List;
import java.util.Map;

/**
 * @author: zxh
 * @date: 2024/8/27 14:19
 * @description: 负载均衡器
 */
public interface LoadBalancer {

	/**
	 * 选择服务调用
	 * @author zxh
	 * @param requestParams 请求参数
	 * @param serviceMetaInfoList 可用服务列表
	 * @return 返回选择的服务
	 */
	ServiceMetaInfo select(Map<String, Object> requestParams, List<ServiceMetaInfo> serviceMetaInfoList);
}
